package cn.hjm.hrm.feign.client;

import cn.hjm.hrm.domain.Order;
import cn.hjm.hrm.dto.ProductDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(value = "system-order",fallbackFactory = OrderFeignFallBack.class)
public interface OrderFeginClient {
    @PostMapping("/order/createorder")
    public Order createorder(@RequestBody ProductDto productDto);
}
